#实例1
num1 = [8,2,15,7,11]
max_num = num1[0]
max_num = 0
for x in range(1,len(num1)):
    if num1[x] > max_num:
        max_num = num1[x]
print(max_num)
#实例2
num2 =[-2,-7,-1]
max_num2 = num2[0]
for x in range(1,len(num2)):
    if num2[x] > max_num2:
        max_num2 = num2[x]
        print(max_num2)